
.framework {
    min-width: 400px;
    margin: 0;
    padding: 0 160px;
    height: 1500px;
}

.box {
    float: left;
    background-color: #eff;
}

.left {
    width: 150px;
    height: 100%;

    margin-left: -100%;
    position: relative;
    left: -160px;
    border-radius: 8px;
}

.right {
    width: 150px;
    height: 100%;

    margin-left: -150px;
    position: relative;
    right: -160px;
    border-radius: 8px;
}

.rightf_box {
    width:143px;
    height:349px;
    position: fixed;
    float: right;
    left:50%;
    top:59%;
    z-index: 999;
    margin-left:530px;
}

.container header {
    /* width: 70%; */
    min-width: 400px;
    height: 220px;
    margin: 0 auto;
    padding:0 20px;

    border: 1px solid transparent;
    border-radius: 8px;
    background-color: #eee;
}

.container > nav {
    /* width: 70%; */
    min-width: 400px;
    line-height: 45px;
    margin: 0 auto;
    padding:0 20px;

    background: linear-gradient(black, #eee);
    border-radius: 8px;
}

.container > nav a {
    text-decoration: none;
    color: #fff;
}
.container > nav > ul {
    margin: 1px auto;
    padding: 0 20px;
}
.container > nav li {
    list-style: none;
}

.container > nav > ul > li {
    display: inline-block;
    margin: 0 8px;

    position: relative;
}
.container > nav > ul > li:nth-child(1) {
    margin-left: 0px;
}

 /* second depth menu */
.container > nav > ul > li:hover > a {
    font-size: 1.1em;
}
.container > nav > ul > li:hover > ul {
    display: block;
}

.container > nav > ul > li > ul {
    display: none;
    width: 70px;
    height: 100px;
    margin: 0;
    padding: 0;
    background: linear-gradient(black, #fff);
    border-radius: 0 0 8px 8px;

    position: absolute;
    top: 45px;
    left: -10px;
}

.container > nav > ul > li > ul > li {
    font-size: 0.9em;
    line-height: 30px;
    text-align: center;

    position: relative;
}

/* third level menu */

.container > nav > ul > li > ul > li > ul {
    display: none;
    
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #fff, #000);
    border-radius: 0 8px 8px 0;
    width: 80px;
    height: 60px;

    font-size: 10pt;
    text-align: center;
    line-height: 25px;

    position: absolute;
    right: -80px;
    top: -1px;
}

.container > nav > ul > li > ul > li:hover > ul {
    display: block;
}
.container > nav > ul > li > ul > li:hover > a {
    font-size: 1.1em;
}

.container > nav > ul > li > ul > li > ul > li:hover {
    font-size: 1.1em;
} 

/* phone menu setting */
.container > nav > .menu {
    display: none;

    height: 45px;
    margin-right: 10px;
    color: #fff;
}
.container > nav > .menu:hover {
    font-size: 1.1em;
}


@media (max-width: 800px) {
    .container > header p,h2 {
        display: none;
        margin: 0;
        padding: 0;
    }
    .container > header {
        height: 90px;
    }

    .container > nav > .menu {
        display: block;
    }

    .container > nav > ul {
        display: none;
    }
    .container > nav > ul > li {
        display: block;
    }
    .container > nav > ul > li:nth-child(1) {
        margin-left: 8px;
    }
    .container > nav > ul > li:nth-child(3) > ul {
        display: none;
    }
    .container > nav > ul.open {
        display: block;
    }
}

.main {
    /* width: 70%; */
    min-width: 400px;
    min-height: 500px;
    padding: 0 20px;
    margin: 0 auto;
    margin-top: -4px;
    background-color: #ede;
    border: 1px solid transparent;
    border-radius: 8px;
}

.product {
    display: inline-block;
    border: 1px solid red;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 20px;

    width: 160px;
    height: 200px;

    text-align: center;
}

.product > h4 {
    margin: 18px auto;
    padding: 0;
    line-height: 10px;
}
.product > img {
    width: 140px;
    height: 120px;
}
.product > p {
    margin: 10px;
    padding: 0;
    font-size:9pt;
}

.container > footer > nav {
    /* width: 70%; */
    margin: 5px auto;
    padding: 0 20px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15pt;
    line-height: 45px;
    text-align: center;
    background-color: #eee;
}

.container > footer > nav > a {
    display: inline-block;
    margin: 0 20px; 
}

@media (max-width: 800px) {

    .container > footer > nav > a {
        display: block;
    }
    .left {
        display: none;
    }
    .right {
        display: none;
    }
    .framework {
        padding: 0px;
    }
}
